package top.revery.api.entity.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by  revery.top jun  网红
 * Date  2019-11-28 21:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@MappedSuperclass
@Entity
@Table(name = "user_kol")
public class  BaseUserKol implements Serializable {
    @Id
    protected Long id;
    @Column(columnDefinition = "varchar(256) null comment '用户ID号'", unique = true)
    protected String kolID;
    @Column(columnDefinition = "varchar(16) null comment '用户姓名'")
    protected String name;
    @Column(columnDefinition = "varchar(64) null comment '用户头像'")
    protected String photo;
    @Column(columnDefinition = "varchar(64) null comment '手机号码'")
    protected String telephone;
    @Column(columnDefinition = "varchar(64) null comment '邮箱地址'")
    protected String email;

    @Column(columnDefinition = "varchar(64) null comment '用户地址'")
    protected String address;

    @Column(columnDefinition = "tinyint(1) UNSIGNED NOT NULL DEFAULT '0' comment '性别 0，女，1男'")
        protected Integer sex = 0;

    @Column(columnDefinition = "tinyint(1) NULL comment '省份'")
    protected Integer provincesId;

    @Column(columnDefinition = "tinyint(1) NULL comment '城市'")
    protected Integer citiesId;

    @Column(columnDefinition = "TIMESTAMP NULL comment '出生年月'")
    protected Timestamp birthday;

    @Column(columnDefinition = "bigint(11) UNSIGNED NOT NULL DEFAULT '0' comment '网红粉丝数量'")
    protected Long fans = 0L;

    @Column(columnDefinition = "int(11) UNSIGNED NOT NULL DEFAULT '0' comment '是否是用户登录数据，0是1否'")
    protected int loisfo=0;

    //可工作类型来标签
    @Column(columnDefinition = "varchar(64) null comment '标签'")
    private String userType;
     //身份证正面
    @Column(columnDefinition = "varchar(64) null comment '身份证正面'")
    private String front;
    //身份证反面
    @Column(columnDefinition = "varchar(64) null comment '身份证反面'")
    private String reverse;
    @Column(columnDefinition = "varchar(256) null comment '自我评价'")
    private String selfSay;

    @Column(columnDefinition = "varchar(256) null comment '工作简历'")
    private String experience;

    @Column(columnDefinition = "int(11) UNSIGNED NOT NULL DEFAULT '0' comment '0审核中,1已审核'")
    protected Integer status = 0;
    /*
     * 创建时间
     * 自动值添加值，不能修改
     * */
    @Column(columnDefinition = "TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP comment '创建时间'", insertable = false)
    protected Timestamp addTime;
}
